As suggested by iive on #radeon, I tried to set R600_DEBUG=nodma and while the problem still happens, the time to trigger the problem increases considerably from a few minutes to 15 minutes or more.