You can use #TASK with any empty macro. So it just tries to open the model and display the error if it is failed.
For example (I have also attached this script):
Just select the version of SolidWorks you want to check against in the drop down in the header.
You may move the mouse over the red cross icon to see the details of error.
I would also suggest to check the following options to increase the performance:
CheckIsCorrupted.sts.zip 175 bytes