Typically you’ll find the the database under ~/.gaia/data directory. You can reset the the db by executing gaiad unsafe-reset-all. I suspect you see this problem because you’ve started syncing with blocks that are incompatible with your gaiad version. Strongly recommend asking these types of questions in the developer discord in the future. Usually you’ll get a faster response there