I was working on a colleague's server the other day and noticed some fails. It turns out he had set his server to php 8 and my server is 7.1. Once we changed his php version, database worked. I have no idea if this is what you are seeing but worth a shot.