<Supplement>
Saving may not be possible due to a problem with the file dialog.
In that case, select and copy the entire program from the edit menu.
Start another new BASIC and perform the paste in the edit menu.
If you are unable to save due to a problem with the file dialog,
try changing the file dialog to a different type in Environment in the options menu.
It may be also effective to reduce virtual memory for variable management.