I'm not sure there is an easy way to recover from this if you deleted the original unmanaged solutions. I suspect the easiest way will be to do the following.
1) Export the managed solution from production as an unmanaged solution
2) Import that unmanaged solution into a new developer environment
3) Export the new developer solution as a managed solution
4) Remove the managed solution from production and re-install the new managed solution
Be sure to backup the data first, but unless the data source is Dataverse you shouldn't lose the tables or any data.