Hello,
Yes this is a very common probelm, and can be reoslved by settings a settings that would make the cookie origin/domain as the root domain of the lms.
Here is an example/answer When attempting to enter a course's home on Learning MFE, Error: getLocale called before configuring i18n - #13 by ghassan.
Also here is dedicated tutor issue about it as well as preview: Preview mode breaks in Maple if PREVIEW_LMS_HOST is not a subdomain of LMS_HOST · Issue #557 · overhangio/tutor · GitHub.