Quiche and other egg dishes fall flat when they cool too quickly. As the eggs cook, the air bubbles expand and the egg dish rises, and when it cools, those bubbles contract and the egg dish falls.
To prevent this when making a quich in the Instant Pot, open the lid after cooking, but leave the quiche inside for a few minutes.