whether it is possible to restore the autosave and stored data after the user change in josm?
An internet search engine has given this result in a few seconds:
https://josm.openstreetmap.de/wiki/Help/Action/AutoSave
Does this help?
If not, tell us why not.