For some reason, it is somewhat common for those upper pan bolts to fall out / strip. When that happens, the upper pan-to-timing case gasket can implode around the oil pump inlet & suck air. Your oiling system has been running dry, and you should not run the car for another second until you fix this.
I believe that the bolts are M6x18. Figure out if anything is stripped. If so, fix them with helicoils or other repair inserts. Use Loctite when installing the bolts. You'll need new oil pan gaskets.