RePhone switches off all of a sudden

Weird question: have you tried in different sim positions?

Also it can have power issues (internal regulator misbehaving) that can’t really be fixed - I heard that providing external supply on 3.3V pins (feeding back) was not enough to use SIM.