A price increase can make up for lower volume if it improves the contribution per unit enough. To measure it, keep price, units and variable costs separate.
An example with numbers
You sell 100 units at $50 and each costs $30. Total contribution is $2,000. If you raise the price to $55, 80 units are enough to keep it, as long as unit costs and fixed costs do not change.
Try it with your numbers
Try a 10% price increase and a 20% drop in units. Then change the volume until you find the scenario where the result gets worse.
Example figures for learning purposes. They are not a recommendation and do not replace professional advice.