The President just followed the rules and mandated the most voted party/coalition into government. Minority governments have been empowered many times before.
What he did wrong was to give an extremely polarizing speech that labeled some of the parties with seats in parliament as unfit for government. This makes him look suspiciously in favor of a government of his own party and has had the side effect of potentially unifying the left wing into a coalition with majority in parliament.
I think the current government is incredibly bad and stuffed with incompetent and corrupt people.
Unfortunately I don't know if the left will be any better.
There is no natural reason why Portugal can't be a much richer society.
It just needs more effective and less corrupt governments.