apparently it does not void the warranty: https://www.tomshardware.com/pc-components/cpus/amd-says-ove...
>Overclocking and/or undervolting AMD processors and memory, including without limitation, altering clock frequencies / multipliers or memory timing / voltage, to operate outside of AMD’s published specifications will void any applicable AMD product warranty, even when enabled via AMD hardware and/or software.
From: https://www.amd.com/en/technologies/expo
The moral of this story is overclocking is not for the naive nor the ignorant, and you must be willing to write off any hardware subjected to overclocking.