Typo's and poor/complicated grammar can break the flow, but they don't take me out of the story.
To take me out of the story, it would have to be something that appears to be illogical/irrational, or a weird twist that just appeared out of the blue.
I remember a print novel (not gay fiction) where the later occurred. It was in the third book of a trilogy, and the story just went in a direction that was completely unexpected, and didn't fit the rest of the story (at least to me). It was an ending, but I felt cheated and disappointed because it felt like a cop-out. The twist seemed to be introduced just so they could bring the trilogy to a close, with no real foreshadowing in the story.
On the other hand, weird twists CAN work at times, as long as there is at least a sense of consistency and rationality to them.
I can also be taken out of story if it becomes something I prefer not to read. For example, I don't read horror stories and a story that became one unexpectedly would turn me off. I might be able to make myself finish it, but I wouldn't have the enjoyment I had while I didn't realise it would become a horror story.