FYI: the error code 0XC0000374 is a HEAP CORRUPTION in the program you are running, in this case the LG SmartShare program. The error is picked up by the OS Kernel (the NT Kernel internals part that looks after bad memory allocations, de-allocations, and buffer overflows, and invalid pointers).
Basically it is a bug in the LG SmartShare program, and when it crashes, it most likely reverts to default settings, that turns the sharing off.
You will need to report it direct to LG, this site is ONLY a user to user forum
If you want an in-depth read, check this out:
https://www.twingate.com/blog/glossary/heap corruption