When I cleared the TPM from tpm.msc, instead of resolving this error, the following failure audit was recorded in the security category of the event viewer...
Event 5061,Microsoft-Windows-Security-Auditing
I had the “Failure audit is recorded regarding Microsoft Windows security auditing” trouble before, but this was caused by clearing TPM.
Since the TPM is within the PC itself, I guess there is no way to clear this error anymore.
Also, the WMI error 1796 in this case may possibly be due to the fact that you upgraded to 24H2 with Secure Boot disabled. 24H2's key update mechanism is different from that of 23H2 and before, so even if you enable Secure Boot again, it may continue to give the error for a long time to come. If you re-enable Secure Boot, the error may continue to occur.
Would it be better for my mental health to disable Secure Boot and ignore the TPM related errors as well as the WMI error 1796 in this case?
(This PC is for home use only, not taken outside the home)