Good news is you are not alone mate,
You are learning at the wrong time of the year, but that is also a good thing, if you can learn to ride in the winter on cold and slippery roads you will find dry roads much easier.
You need to break it down to the root cause and understand what causes you to lose confidence what exactly makes the bike lose control.
It can be a number of things;
Your mental state, because you don't have confidence you will be tense and stiff, this will not help with cornering. You must allow the bike to do what it is designed to do, you must try and relax.
So how do you relax?
You must have confidence in what you are doing, a positive attitude. Are the tyres on your bike good, are they cold or warm. Cold tyres are basically crap, they need to be warm and soft to get reasonable grip, so in the winter grip is reduced. The road surface you are riding on is very important, if it is smooth grip is reduced, if it's rough you will get more grip.
The combination between tyre and road surface varies, in theory a smooth surface you get a bigger footprint, more rubber on the road surface which is a good thing, only if tyres are warm and the surface is dry and not greasy, a rough surface is better in the wet, the water soaks away and the tyre grips the rogh edges.
Road camber is another issue, left hand bends generally feel easier than right hand bends, that is because the tyres are pushing into the road surface where as with a right hander the road surface falls away from you are the rear tyre feels like its going to slip away.
So when you are aware of what is going on with all these things, you will improve your confidence and know when you really should back it off a bit.
I have been riding for a few years now, I have done track days, off road riding and I still have the same problem as you, Recently twice I got caught out, losing the front end on a road that I use every day (mostly in a car).
One was when I knew that a section of road was muddy and knew where to back it off, because I passed it on the way to work in the morning, what I didn't know was that during the day a tractor had dumped mud right on the exit of a right hand bend, it was dark I didn't see it and the front slipped away, but saved it.
The other was again in the dark on a right hand bend, again losing the front end middle of the turn. When looked at the same spot in daylight it was a small ripple in the road surface, because it was dark I didn't take the line I usually would and it caught me out.
Both of these moments knocked my confidence, but it is going back and having a look at the cause. The solution? back it off and take it steady in the dark, its not my riding, but the hidden dangers that I can't see that caught me out, a bit slower and at least I know I won't end up in a ditch.
A bit long winded I know but I hope you understand what I am saying.
My advice is if possible find a biker mate / relative to go with you to take you through the parts of roads that you struggle with, look for any clues that can help you get your confidence back. Start off slower and build up speed again gradually.