Worst comes to worst, you could export using a library like this one: https://github.com/kjk/notionapi
That being said, definitely not ideal and is always a risk when storing your data with a SaaS service (disclaimer: I'm the founder of dendron.so - a fast open source notion competitor made for developers)