You need to have your Legal name correct on your Microsoft Learn profile
https://learn.microsoft.com/users/me/settings
As you have your exam booked, contact Microsoft Credentials support https://aka.ms/credentialssupport and create a ticket https://learn.microsoft.com/credentials/support/help#how-to-submit-a-support-request