Note 8 dies when battery is drained completely
Since it's a Note 8, it MAY still be covered by a warranty. If so, take the phone to the store you bought it, they should look it up for you, and if it needs any repair they will take care of it, since as far as I can tell it's not your fault.