Hello!
Based on some tests, I've seen that modem disables attach logic for at least half an hour in case it has tried to connect to network at least twice with disabled SIM. My assumption is that the same Modem Reset Loop restriction kicks in, because even the SIM is again enabled, modem need to be running for some time (once it was around 30 minutes, sometimes its longer) before it can again establish connection successfully or AT%XFCTORYRESET=0 need to be issued to modem - the same behavior as with reset loop restriction. I have seen the same issue on multiple devices
As far as my testing went I did not manage to receive any specific notification about this event by setting %MDMEV=2 AT command (I was kinda hoping to see LTE_LC_MODEM_EVT_RESET_LOOP).
The SIM disabling is a necessary feature for devices that are not used in field, so that we don't have to pay for data, that actually are not necessary. Turning off the device in that case is not an option.
.