D-Link stock firmware tends to be rather buggy in my experiences.
Power saving features sounds like a strong possibility.
I’ve seen a problem like this where it was related to the client switching between 2.4ghz and 5ghz and the router switching channels rather frequently.
Try writing a keep alive job. Every ten seconds ping Google.