Have you looked at these?
Pin pullup not waking cores from sleep (Waking by itself)
Having trouble using Sleep() with wakeUpPin
[SOLVED] Not able to put my core in stop mode (it just wakes up)
Can you show your code and give some info about the hardware setup?
With your rather minimalistic error description I’d guess on a floating wake pin.