my professor mentioned later in one of the lectures that it's a "big no no"
You can certainly construct a thermodynamic potential $\Phi$ for cases of fixed temperature $T$, pressure $P$, and chemical potential $\mu$. Recall that the internal energy $E$ is
$$E\equiv TS-PV+\mu N+\sum_i X_iY_i,$$
with entropy $S$, volume $V$, particle number $N$, and $X$ and $Y$ as intensive and extensive conjugate variables, respectively, corresponding to all types of work that aren't pressure–volume work (e.g., magnetic field–magnetization work or surface tension–area work).
Based on the fundamental relation
$$dE=T\,dS-P\,dV+\mu \,dN+\sum_i X_i\,dY_i,$$
we define our potential $\Phi$ as usual through a Legendre transform:
$$\Phi\equiv E-TS+PV-\mu N,$$
yielding a new relation
$$d\Phi=-S\,dT+V\,dP-N\,d\mu+\sum_i X_i\,dY_i,$$
which is just $d\Phi=\sum_i X_i\,dY_i$ at constant $T$, $P$, and $\mu$. Now, if you never considered any type of work other than pressure–volume work, then this potential wouldn't be too useful to you, as it would be identically zero! Perhaps this is what your professor is referring to.