is it against the law to drive with hazards on?
Hazard warning lights. Never use them as an excuse for dangerous or illegal parking. You MUST NOT use hazard warning lights while driving or being towed unless you are on a motorway or unrestricted dual carriageway and you need to warn drivers behind you of a hazard or obstruction ahead.