I take it this is an academic paper. Terms such as "his majesty" and "his highness" etc. have no place in academic English. Instead of His Majesty or HM, you can always write simply "the king", or "king whatever his name and number may be", e.g. George IV.