If the condition only occurs occasionally, it is considered sleeplessness. However, if it happens for weeks or months, it is…