What host OS are you running the IDE from?
How are you powering your board?
What debug operations are you carrying out in the run up to seeing this error?
What is the code on the target doing in the run up to seeing this error?
Which memory is your code loaded to and running from?
When you see the error, do you loose the debug connection, or is the debug connection still live?
Can you post the text from the "debug log" and "gdb traces" from the Console View (as described in section 16.8, The Console View, of the MCUXpresso IDE v10.1 User Guide). It might also be useful to see the .log file from the .metadata folder within your workspace.
And also, if you haven't seen it - read the hints and tips on using MCUXpresso IDE with RT1050 from : Overview of using the MIMXRT1050-EVK with MCUXpresso IDE
Regards,
MCUXpresso IDE Support