Is it possible to exclude a database from WAL and basebackup?
No, there is no way to do that.
I would recommend that you create a second PostgreSQL cluster and put the database there. That does not incur a big overhead as far as system resources are concerned, and it will solve your problem.