Dynamical friction from scalar dark matter in the relativistic regime