The the win_share module currently catches all exceptions and doesn’t output the exception message in the final JSON output. I’ve raised a PR to add this feature as I’ve come across it just recently https://github.com/ansible/ansible/pull/22763
Nice one.
Since the PR mentioned above has been merged, I suggest testing with latest development version of ansible.
Jon