Photoshop crashes a lot without any introduction, first it slows down and then crashes permanently when I open it again it doesn't take 5 minutes until it crashes again
Which exact version of Photoshop?
Which operating system?
When Photoshop crashes, this is the first thing to do, try resetting your Photoshop preferences. Press and hold Alt+Control+Shift (Windows) or Option+Command+Shift (Mac OS) immediately after launching Photoshop. You will be prompted to delete the current settings. You can also reset preferences upon a quit if Photoshop is running by going into General Preferences>General>Reset on Quit.
If that doesn't fix the issue:
Go to Preferences > Performance... and uncheck Multithreaded Compositing - and restart Photoshop.
Go to Preferences > Performance... click Advanced Settings... and uncheck "GPU Compositing" - then restart Photoshop. Still crashing?
The current version is 23.5. Have you tried that?