Format is randomly changing how paragraphs work

I’m on an iPad. Randomly, the formatting will stop acting normal and start breaking words up. Like I type after and instead of moving it all to the next line it goes aft on one line and er on the next line.

Also sometimes it forgets about paragraphs at all and the last line just goes on forever to the right.

Is this a format am turning on or something?