If the hashrate can't keep up with the price increase because it has exhausted all sources of available electricity, then difficulty will adjust down.
This doesn't limit the potential growth of Bitcoin, it only puts an upper bound on the security per block.