It is a great idea to take time off running for at least a few weeks to give your hips time to recalibrate and for you to learn about your body more.
If you feel you absolutely must run for your mental health, then we suggest you run at a slower pace and for shorter distances - paying very close attention to how you move and feel. You only want to run at an intensity and distance in which you can maintain excellent form without pain during or after your runs.
Many people make the mistake of chasing an arbitrary distance to achieve without thinking about how it will affect the body in the long run.
If you already feel like running leads to hip pain, you should not keep running at the same pace or distance until your hip function and comfort improves.
If you are lopsided, asymmetrical, and/or you feel like you're pounding hard into the ground (as opposed to feeling light on your feet and legs), you should put your time and attention into fixing your muscle function before smashing your body with more intense exercise of any kind.
Perfect pain-free form is priority #1.
Speed and distance should be secondary concerns.