Both Photoshop and Lightroom Classic seem to have difficulties handling the RAW image (.CR3) files from my Canon EOS R5 with RS 24-240 f4-6.3 IS USM lens, primarily when I am using that lens at 24mm focal length. Both the Adobe apps show significant distortion in the images and still have quite noticeable distortion even after using optical correction using Adobe's lens profiles. I have my camera set up to produce both the RAW (.CR3) files as well as .jpg versions. The Canon .jpg files do not show any of the distortion that I see in both Lightroom and Photoshop. When viewing the RAW (.CR3) files in Canon's Digital Photo Professional they also do not have the distortion seen in Lightroom and Photoshop.
I could provide copies of a sample RAW file along with .jpg files from the camera and generated from Photoshop both with and without the optical lens correction if you would like to see what I am talking about.
Thanks