Can you share a link to the Drupal module that you are using? If it’s the module that’s linked to in this post, it was last updated in March of 2015, so it’s quite likely there will be issues with it.
This Drupal SSO module was updated in December of 2019: https://www.drupal.org/project/discourse_sso. It would be worth giving it a try.