Hi there,
I guess you would get more answers in the troubleshooting forum than here but anyway…
You need to reformat your SD card to get back the "missing" space, as said
here
Later on you can go to the software manager and remove the packages one by one.
Do consider
creating a SWAP file to help your OPI as well.
Good luck!