It would be an option to search for “PWM solenoid and valve driver”.
One of the findings is https://eu.robotshop.com/products/electronics-lab-pwm-solenoid-and-valve-driver-using-drv103
Details: https://www.electronics-lab.com/project/pwm-solenoid-and-valve-driver-using-drv103/
However, I suggest to start with Jim’s schematic and see if it is good enough. I trust Jim’s experience.