The person needs to undergo a Psychiatric consultation to understand the problem in detail.
If the problems are of short duration a course of medication and talking therapy will help. If it is a long standing problem, addressing with medication , psychological treatment( therapy) is required . A diagnosis of the condition is immediately needed.
Next Steps
Meet a Psychiatrist, online/ face to face asap. Then appropriate intervention has to be planned .