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
Ryzen R7 5700G | B550 Gaming X | 2x8GB G.Skill 4000 | Radeon Vega 8 IGP
Ryzen R5 5600 | B550 Gaming Edge | 4x8GB G.Skill 3600 | Radeon RX 6800XT