The frunk lid consists of a plastic outer shell and a plastic inner shell screwed together. I’d find it unlikely those plastic main pieces would have warped. Instead, on the lid I would focus on the condition of the hinge and it’s attachment fasteners, and on the latch hook metal piece at the front. Also inspect the weatherstrip, in case it came out of place and is hampering the lid closure.
It seems more like the latch mechanism near the key hole could be at fault than the lid or it’s components. Perhaps someone changed the air filter and didn’t reinstall that front cover correctly.
I would inspect and/or disassemble it and diagnose the problem before ordering any parts. It may be that the repair won’t require new parts.