If there's a genuine desire to seek and follow God in your heart, He will never give up on you. I think that all the examples in the Bible of people who God gave up on, were people who had already completely closed their hearts to God. He never abandoned someone who was seeking Him, but he sees our hearts, and if there's nothing in us that He can redeem, He sometimes gives up, as I believe was the case with Saul. As for the spirit in Saul that you mentioned, I won't pretend to completely understand that one, but I think that was a necessary part of his plan to get an evil man off the throne and pass the kingship onto someone who would serve him. Remember, David messed up quite a bit as well, but he always repented and God always forgave him. Saul, on the other hand, was never repentant for what he did and God can't forgive what we aren't sorry for. It's been a while since I read Samuel, so sorry if my details aren't perfectly straight. Anyone with a fresher memory can correct me if I got anything wrong, but this is the impression I got when reading it.
Anyway, keep things like this in mind when you read the Bible. Not all of it is as black-and-white as it seems. Usually what we read in the Bible is simply
what happened without all the details of
why. That's where faith and discernment come in. God never lies, so when things in the Bible seem to conflict, that's when we have to look deeper than the printed word and figure out the reasons for what's happening in the context of the situation.
Don't let the Devil prey on your fears! He wants you to think these things so you'll doubt God's love for you. Twisting the truth is much more effective than simply lying, so that's what he does. Don't listen to him! God always,
always wants to be close to His children! He doesn't force us to come, but He will NEVER force us away if we want to be with Him.
Revelation 3:20 (the keyword in this verse is
'anyone').
I hope this helps! I'll keep praying for you! <3