blender crashing when painting texture
Blender is possibly crashing due to errors. To debug potential crashes, check the debug logs. Follow the steps stated in the link to produce and view such logs.
https://github.com/AC-Panda/b3d-debug/blob/main/README.md