Wanting to give up but not being able to stop for long indicates that you are dependent on cannabis to an extent. That means that you have lost control over your habit. Hence, the best thing for you would to keep off cannabis. The more you continue taking it, the more difficult it is going to be for you to quit. Please also remember that cannabis is well-known to increase the risk of developing psychosis
later in life. It is not a harmless recreational drug, as commonly believed.