MacBook Pro 2018 switch from sleep to DarkWake in loop. How to diagnose?

Solution 1:

You could force disabling TCPKeepAlive when on battery power. However, this may reduce the functionality of Find My Mac (notably cannot find your mac when it's sleeping).

Run this command from the Terminal:

sudo pmset -b tcpkeepalive 0

In any case, I'd argue if your mac is stolen, it won't be able to connect to the Internet anyway unless the thief logs in as a guest (using the Safari-only login mode) and configures Wi-Fi for it to use.