Thanks for reaching out. We're sorry for the trouble with Lightroom & Photoshop.
I'll need more information to help you with this.
Could you please share the version of Lightroom or Lightroom Classic you are working on & the system info of Photoshop from Help > System info > Copy & paste into a text document > upload to Creative Cloud files (https://assets.adobe.com/files) and share with us? Do you see an error screen or pop up before the applications crash?
If you are working on Lightroom Classic, where is the catalog stored? Is it on the internal drive or an external drive?
Similarly, please go to Photoshop > Preferences > Performance > Use Graphics Processor > Uncheck it and restart Photoshop. You can also optimize Camera Raw, which handles Raw images in Photoshop, by going to Photoshop > Preferences > Camera Raw > Performance > Uncheck Graphics processor and increasing the cache sizes.
If this does not help,
Go to the location of the preference folder mentioned below and rename it to backup.