The internal energy as a function of its natural variables is:
$$dU=-p dV+TdS$$
where $p$ is the system pressure and $dS$ includes only changes of the entropy due to heat transfer (the "reversible" heat).
This can be understood as a root finding process of $dU$ (corresponding to minimization process of $U$) under constant $V$ and $S$ with the Lagrange multipliers $-p$ and $T$:
$\alpha=dU+pdV-TdS$
From this, we can follow that under constant volume and entropy, there should be a minimum of the internal energy!
However, we could instead of using $V$ as a variable also switch to $p$ to yield a minimization function:
$\alpha=dU+\left.\frac{\partial U}{\partial p}\right|_{S}dp+\left.\frac{\partial U}{\partial S}\right|_{p}dS$
Following the same argumentation, $U$ also marks a minimum in a system of constant pressure and entropy. But the equilibrium state of such a system should actually be described by the enhalpy:
$\alpha=dH-Vdp-TdS$,
rather than the internal energy.
Where is my mistake?
It seems that we can always find a minimum of any thermodynamic potential in each 2D thermodynamic space, but the values of the 2 equilibrium variables at this point do not correspond to the physically correct values. Meaning that only the enthalpy minimum is located at the correct equilibrium pressure and entropy. But how can this be shown?