A temporary loss of service does not automatically mean a SIM swap, but sudden unexplained loss of service deserves attention.
Check whether you received messages about a SIM replacement, number transfer, or account change that you did not request.
Contact your mobile provider through an official channel and ask them to check the status of your number.
Secure important accounts that rely heavily on SMS recovery and consider stronger authentication methods where available.