I am the same height and I happen to have p37-ds and p23a-s in m. For me, the length is just enough and it would be perfect if they’re 1 to 2cm longer. So if you find your p37 a bit short, maybe p23a size L would be a better fit (you can always wear them higher on the waist if you find them a bit long).
On a side note, the site list errolson’s height 183cm and wear size m, but I was told by a retailer who have met him in person, that he look shorter than me. Keep that in mind when you use his fit pic for reference.