I've actually got a similar problem in my 2020 Subaru. If I put my foot in it when it's acting up the computer pulls the timing back to 5-10 degrees ATDC
Anyway, I'd check the mechanical advance mechanism out. Base timing is probably good if you've double checked it but do you know if it's advancing?