Thank you!
I was getting this on my M5StickC-Plus, on the 10th/Oct/2022, with all the latest board/library updates.
I hope everyone else can find this thread!
For me the file I had to add those lines to was:
C:\Users[login name]\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.5\boards.txt