Did you resolved the issue? I have a similar (same) issue. Can you give me any advice what was wrong in your case?
What I see in my case is that on the SmartThings Redirect URI show 424 HTTP error. My identity provider correctly exchange the code and state values.
Hope to hear from you!