The problem has been solved. By contacting my cloud service provider, it was confirmed that the issue was caused by the cloud service provider’s security feature locking out systemd-shutdown. If you experience the same issue, you can try temporarily disabling the server’s security feature or contacting your provider’s technical support.