How will the Halving affect the miners?
There is always a way. They can quit mining bitcoin and switch to another one if they don't see profit.
Afterwards, there will be new miners that would want a spot for mining bitcoin.
Or, the difficulty will be lower and they will have an easy way to make bitcoin for just a manner of time.
They always have a choice here. They are not mandated to stay.
It is like business, when there is no profit then you will need to let it go and find a new one.
Another way is, they could upgrade all their technology for a better outcome.
But we should not much worry about this. Bitcoin will provide. That, I dont have any doubt about.