How to heal this?

I got these from wearing flats and I have it on both feet same place. How can I get rid of these and avoid having them? Thanks