This error tends to occur more frequently when using GPU space, including zero GPU space. It has also occurred in Hugging Face staff’s space.
It probably occurs when there is no available hardware at the moment of startup.
There are apparently very rare cases where the cause is in the code, but I have never encountered such a case. If there is no problem with the code, I think it will eventually be fixed by restarting repeatedly.