Greetings!
Your m.2 in question is B+M, meaning it can fit either socket type as far as I can tell. The motherboard has the "M" keying, and the m.2 has it (as well as B), and can take up to the 2280 sizing standard (which your m.2 is), so it should fit. Storage is storage, so if it fits, it should work. Your m.2 was originally designed for the HP Envy X2 notebook, but it is standard form factor, so there shouldn't be any issue there either.
Unless I have missed something, you should be good to go!
Hope this helps!