A police officer who had sex with a domestic violence victim he was called out to during Covid lockdown has been jailed.