Classical guitar string broke after five months

I’ve restringed my guitar five months ago and today I woke up to this… is this the cause of bad string or did I string it wrong?

I’ve restringed my guitar five months ago and today I woke up to this… is this the cause of bad string or did I string it wrong?