There is no need to worry about that burn in temperature as it is a synthetic benchmark.
As your normal temps are 40 idle and maximum of 77 under load they represent a CPU that is being cooled normally.
My previous Ryzen 2700x and also my current 3700x both go up to 95c under synthetic tests like Prime95 etc.
These chips cut out at 100c and switch the PC off instantly to stop them from getting damaged.
Andy