Focaccia can collapse when you prove the dough for too long. Not kneading the dough long enough can also cause it to be flat and dense once baked.