You can also talk to the PO clerk and explain your problem.
Show your correct identification. PO clerks need government ID with a picture and an address. Or a passport and a utility bill. Find out what they want. It varies. (Not the law, the understanding of the law.)
There should not be a problem with a variation in your name as long as you have proof of who you are and that you live at the address the parcel was addressed to.
Be polite of course. You want the clerk to be on your side. You may have to ask for a manager or come when a particularly stupid clerk is not working.
My own name is similar to, but not the same as, two more common names. And I don't have a driver's license. But my husband has often picked up parcels addressed to me, and his name is also different.
Politely.----Captain Malcolm Reynolds.