HR monitors can give some whacky readings from time to time. Wash your strap with soap and water and see if that helps.
If the HR was correct and you we seeing 170 at what seemed like the same effort and pace as when it was 150 then that is a new one for me. I’ve never seen HR elevated in those circumstances.
I’d recommend getting some more data points to see if this issue persists.