If you purchased a pre-assembled PC it was likely built with an OEM processor, which only has a 30-day warranty from AMD. You will need to contact the company that assembled the PC for any warranty claims.
If you purchased a box processor you can Determine the Authenticity here and then Request Warranty Service if needed.
Ryzen R7 5700X | B550 Gaming X | 2x16GB G.Skill 3600 | Radeon RX 7900XT