slurm created qos and assigned it to the user, but the user cannot use it.
Invalid qos specification
You should use this:
systemctl restart slurmctld