During my very very explorative nonesense, I came across the following error.
zsh corrupt history file /home/usr/.zsh_history
Now if you read the article linked below you will find out how this would happend also get to understand what you are trying to fix
Attributed to: https://shapeshed.com/zsh-corrupt-history-file/
This repository is a tribute to that after testing it and seeing its validity I wanted to share it with the rest of the class.
cd ~/bin #or a $PATH of your chosing
#download the repo
wget https://github.com/Work-With-Phoenix/zsh_history_fix.git
#make the command executable
chmod +x zsh_history_fix