Insulting of the Queen, called Lese-majesty, was only abolished in Scotland in 2010, it was prior to that a common law criminal offense, thought that last time it was ever prosecuted was in 1715.
ps. Also of note, offending the queen was the last step in the expulsion of Genesis P.Oridge (1980's?), when he and his cohorts mailed her their ejaculate.
However in reality, parliament has all the power. The queen has no veto on laws, if they were to refuse to sign a law, they would have to resign (or there'd be a civil war). In theory the queen appoints the government and prime minister, but they must appoint the person who parliament has choose. In theory PM goes to the queen to dissolve parliament, but the queen cannot refuse. The monarch has mo power anymore is more of a formality.
I don't believe that's an offence in the UK. (Thailand has a law like that). Remember Parliament in the UK can despose and appoint a new monarch, so I doubt they'd make it a crime to insult the monarch.