The deeper the hole, the longer it may take to crawl out of it. With God, all things are possible, but there’s no guarantee that deliverance will be instantaneous. In fact, God may WANT the process to take time.
God will ordain misery, but He does not desire it for His children (ultimately speaking). Misery is fruit of human flesh. You may be, in general, miserable, but the root cause is often one or two specific areas of sin you persist, knowingly in.