Well, i will throw my 2 cents into this. I had yum updated 3 servers and got this error on 2 of the 3. the one that did not have the error was rebooted.
So rebooting after yum update fixed the issue for me.
Rocky linux 9