The second party did not receive a majority vote, and was not elected. If it turns out that the "winning" candidate is ruled not to be eligible, which will require a point of order, then you'll need to hold a new election. The runner-up can run again, of course, and may yet get a majority vote.