It will become uneconomical to mine and therefore people will stop doing so, causing the hash rate (and therefore the cost of energy + hardware required to mine) to plummet, eventually making it economical again.
Also, hardware is a fixed cost, fixed costs don't affect the price at which miners would stop mining.