Sony xa2 problems with the camera

I can’t use the camera app cause is crashing all the time. I go to cache and storage and clean them ,and it works for a while and then crash again after a while.

ok. Now it seems to work better. I got reed of iodeOS and install Lineageos and try out the camera and so on. It was working perfectly in Lineageos.
After checking that , I uninstall LineageOS again and install iodeOS one more time and wiping data, cache dalvik, system, and internal storage.

Now seems to work perfectly.