Guten Abend. To avoid this I'd save a copy of the preferences folder on a cloud storage area.
This page will give you the locations: https://helpx.adobe.com/de/photoshop/using/preferences.html for Photoshop , there are similar pages for the other programs, just go up from the photoshop folder to the illustrator, etc. Pay attention, sometimes the prefernces are per version. I hope this helps!