I ended up buying a third-country "grey" passport and a permanent residence permit in Greece into it just so it doesn't happen again. Cost me $500K but better than risking jail again.
... what?
... what?