I have run into this myself, I think it's a limiter bug in that when the game was coded they didn't put a notification_max limit
so the games spamming any messages when we get stuck in a loop, in your case a ship can't seem to FTL out of a system with a pirate or attacking fleet.