Where should I put a check valve?
Personally, I wouldn't use a check valve. Since I wouldn't be sure that I would regularly clean a check valve, I wouldn't be sure it would work when needed. And if I can't count on it working, I wouldn't install it.
Instead, put the return (or drill a hole in the return line) high enough so that a power failure will not overflow the sump.