There are a lot of issues that can cause this. Not enough power, vibration, etc.
But some amount of altitude loss is unavoidable, even on a perfect setup. It just the basic Venturi Principle. Airflow past the barometer causes a drop in pressure, which causes a flight controller to think it...