If a ground war breaks out in Iran, it will lead to higher prices for electricity and chip manufacturing.
Many data centers, where many miners have invested, use natural gas for energy. If the war in Iran doesn't end quickly, it will impact many industries worldwide.
I think it is not going to be only the Iran that would be having issue mining but also countries which their energy comes from Iran, the neighboring countries, the other countries involved in the war and also the countries which their oil or gas must pass through the straits of Hormuz.
One of the major problems associated today with mining is actually energy as such if it’s crisis persist then it will greatly affect miners in this region and possibly in other regions too. Also bitcoin price will be affected too
If you look at the leading mining countries, you will see that they are energy independent from Iran.

However, the production of components depends on Iran, because their energy resources are used in many industries, including mining equipment.