Can you please share a screenshot of the System tab of your .cydwr file?
What is the Debug Select set to? While debugging, this should be set to SWD as shown -
Apart from this, we have seen the same error if project files are corrupted or if there is any hardware issue as explained in this thread - CYBLE416045 module unable to debug
If possible, can you please share your project so that we can try to recreate the same issue?
Thanks and Regards,
Rakshith M B