Statistical physics of constrained and long-range interacting quantum systems: thermalization and critical properties