The beauty of special relativity is that seemingly disparate concepts from Newtonian physics (such as space and time) are seen to be deeply linked and constrained.
In Newtonian physics mass is just an axiomatic property of particles. Energy and momentum are introduced at an elementary level as separate conserved quantities in closed systems.
A deeper understanding of energy and momentum, even at the Newtonian level, is that they are conserved quantities associated with the symmetries of your system under time translation and spatial translations respectively. Loosely: if it does not matter whether you do the experiment now or later, then there exists an abstract quantity called "energy" which is conserved in the system; and if it does not matter if you do it here or there, then a quantity called "linear momentum" is conserved.
But in special relativity time and space are linked into a spacetime, whose geometry is characterized by the Lorentz invariant spacetime interval. Similarly, energy and momentum get linked into a four vector whose magnitude is Lorentz invariant, namely $E^2 -p^2 =m^2$ in $c=1$ units.
So "mass" in special relativity is just a quantity that characterizes the length of the energy-momentum four vector. It is a Lorentz invariant quantity and so a good quantity to characterize a particle with (other than its intrinsic spin).
Physically, for a particle at rest, $E=mc^2$, so mass is just a form of condensed energy. You can release some of it, eg in fission, or create new particles of mass from pure energy, as in colliders.
The key concept you need to absorb from special relativity is "Lorentz invariant quantities". They play a special role, everything else is relative.
Quantum physics does not explain what "mass" is. It only provides processes for transforming mass to other forms of energy and vice versa.