Thanks for asking question! You may want to know that if there any error occurs during a slot swap, it's logged in D:\home\LogFiles\eventlog.xml. It's also logged in the application-specific error log.
Also, to help you on this there is App Service Diagnostics feature which helps you to troubleshoot your app with no configuration required. When you run into issues with your app, App Service Diagnostics points out what’s wrong and guide you to the right information to more easily resolving the issues.
Go to Azure Portal > Select your App Service > on left side of menu click on Diagnose and solve problems > select configurations and Management > select check swap operations from left menu.
https://azure.github.io/AppService/2020/03/23/A-New-Look-for-App-Service-Diagnostics.html
You may also refer to below links might be helpful:
https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots#troubleshoot-swaps
https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/
Let us know incase issue persists.