I think it would be better if you can share with us your mlogs here so that we can find what error do you get or what is the reason before the error code popup.
Look at this image as a sample:
source: https://www.innosilicon.com/html/support_en/q_a.htmlAs you can see there is an error code 35 and according to innosilicon error code it's no power output and look at the image before error code 35 "chain1: no power supply -0.0v".
So check the mlogs and post it here in full so that we can see the issue before the error 161.