At BKK there is a hotel post-security, Louis Tavern Transit Hotel or something like that. Unless you want to go to the city, that could be a good option since you have an early flight out, and it would probably mean no departure tax. I rented a day room there a few years ago when I had a 12h connection, it's a pretty good hotel.