Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
The error suggests that there is a validation problem with your authorization code. Please deauthorize Rank Math on your search console profile via Rank Math > General Settings > Search Console and then authorize it once again.
I visited my Search Console in RankMath and it is displaying my info and it looks correct. I do not see a way of “un-authoriing” or disabling and re-authoring search console. So not sure what this php error is all about.. just thought I would try and get it sorted