Isocurvature constraints on scalar dark matter production from the inflaton