If you purchased an official AMD Processor in a Retail box you have 3 year Warranty from AMD Warranty. If the processor is 3 years or less and your Retailer's Warranty has expired then I suggest you open an AMD Warranty Request from here: https://www.amd.com/en/support/kb/warranty-information/rma-form
AMD will require your authentic Retail receipt and possibly photos of your processor. AMD will let you know what documents they will need to RMA your processor if they believe your processor might be defective.
I would also open a MSI Support Ticket to see if they believe you Motherboard is defective and needs to be RMAed to be checked.