I think shoving from the button is okay with ~20BB with certain hands. 30BB is too much to shove. Shoving monster hands like queens is a big mistake, because you lose a lot of value. Shoving much worse hands would be a big mistake, because you risk too much, for too little.
When you open, the big blind is shoving / 3-betting 55+, AT+, KQ for sure, whereas he should fold some of these hands to your shove. He can still 3-bet bluff you with a weak suited ace or a weak suited connector. You can stack many hands where they hit top pair on boards that are Q high or lower. Shoving QQ allows your opponent to not make any mistakes and you will lose a lot of value.
With 15 left and top 8 pay, it is not really the bubble yet. Only 50% cashes. Don't worry about cashing too much, it is much more important to build up a stack, so you can be a big stack on the real bubble and moving forward after that.
You can't ever have avoided busting with 30BB on the button with queens. In this exact hand, your actions didn't really matter. In other situations, open instead of shove!