I also had the same issue. Finding which plugin was causing this was tough so i just switched from php 8.2 to 8.1 and the error went away.