Gnucash 5.2 can't save file solution.
Just updated to Gnucash 5.2 (via flatpak) and found I can't save the account file anywhere. It appears to be an issue with 5.2. Solution: Turn off file compression in Gnucash (Edit/Preferences/General uncheck 'Compress Files')
Fixed in version 5.3