The smell of vinegar in homemade wine indicates a sour drink. The reason is that the acetic bacteria, when exposed to oxygen, converted alcohol into water and acid. Acetic sourness refers to the diseases of wine that cannot be corrected, for more details https://alcofan.com/pochemu-vino-prevrashhaetsya-v-uksus.html . To prevent souring, you need to use a water seal and monitor sterility.

In less severe cases, you can try to hide the smell of vinegar in wine with sugar or dilute the drink before drinking with water or juice.