Whether the invalid site URL is a SharePoint on-premises site collection or SharePoint online site collection?
If it is a SharePoint on-premises site collection, use the original site URL (http), not the AAM URL.
If it is a SharePoint online site, create a new site collection without "-" parament, then migrate data.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.