I would open a AMD SUPPORT - Warranty ticket and upload your photo and see if they believe you processor needs to be exchanged or not from here: https://www.amd.com/en/forms/contact-us/support.html
But looking at the photo it doesn't seem to be anything serious since the cement used to attach the lid to the processor probably spilled out during the manufacturing process. If the lid is slightly loose or it seems like it might come off then I would open a Warranty ticket.
But for now just open a AMD Support - Warranty ticket and see if they believe it is something serious enough to be replaced under Warranty or returned back to the Retailer.