Hi Yorrd.
Have you tried “cleaning” the text? By that I mean copying it to a basic text editor - one that only handles plain text - then checking to see if there are any superfluous characters (non-printing stuff should be easy to spot as “garbage”), then putting it back into a new text frame.
Sometimes copy and paste, or importing from another text file, can bring along special characters you don’t want and can cause problems.