Latest nVidia drivers? Maybe even Betas.
http://www.nvidia.com/Download/index.aspx?lang=en-us
Sorry ☹️ I seen some pretty beefy desktop GPUs get this error too... not sure what is going on.
There should be a few threads on the front page where I threw a bunch of stuff against the wall.. not much if any stuck I don't think ☹️
Game and Origin as admin. Go to the PvZ .exe, Properties, Compatibility, Run as Admin
Try reinstalling DX from the __installer folder
Reset Global 3D preferences from nVidia Control Panel (if you set it up to force it to use the 540m it'll probably revert that so you'd have to reset it).
*edit*
Make sure you don't have any other overlay programs I guess like Afterburner's RiviaTuner or Fraps.
Maybe even try a clean boot.
http://support.microsoft.com/kb/929135