Hi @zoonini,
I was using the most up-to-date WordPress version. I tried disabling all the plugins and everything else you recommended, but still was facing the same error.
I ended up making a child theme of Twenty Twenty Two and recreating my layout from scratch since it had been a while and nobody responded to this thread. So while I appreciate your response, I was only able to fix the issue by starting fresh. If I have any problems in the future, I will post here again.
Thank you!