Debugging exceptions - opencv save image to disk

Update 01
The exception was thrown because i was trying to save as a jpg file. I saved the image as a png file and it worked. Thanks to this thread Does the OpenCV included with UE5 come with JPEG compatibility?.

I still need to learn how I’d go about debugging this via the call stack. So my question still stands
End Update 01

debugging exceptions -
Hi ,
I’m getting an Exception Unhandled error when I press the play button in the editor.
I’m using the inbuilt opencv plugin to Read an image , apply a blur to it and (try to) save it back to disk.

The exception occurs when I try to save the image back to disk.
Unhandled exception at 0x00007FFDAA12CB69 in UnrealEditor.exe: Microsoft C++ exception: cv::Exception at memory location 0x000000D6AF178860

Attached a pic of the function and call stack . Thanks for any help in understanding how to debug such errors.

b