I read of a procedure that should avoid this issue with windows licensing (sadly too late), and specific for MSI motherboards, at least on the post he was using this brand:
- Enter in bios and disable TPM
- Log windows: you'll face the procedure of new pin and stuff
- Check if windows is still activated (as it should be)
- restart and update your bios
- log in windows and check again
- after all that you can enable tpm again
In your specific case, it is highly suggested to save windows key somewhere safe.
I tried this method and my activation problem is still there, but I can confirm the fact that only the first time you follow the procedure above, windows asks for a new pin and new log in you microsoft account. Tried a couple of time and nothing changed for me.
According to that post/video (can't remember, I'll post a link when I find it again), once you disable/enable tpm, and change pin/re-login microsoft account, you'll be safe for future bios update
edit: found the link, MSI forum