You’ll get this message when the total limits defined for this quiz have been reached.
Look at the setting “Allow total of??attempts on this quiz (enter 0 for no limit).”
This setting is for total attempts for everyone combined – it’s not a per-user setting.