Methanol is nasty stuff as well. In distilled spirits it is thrown out but in beer and wine it stays in. It is a small enough quantity to be safe but can cause headaches. There is more methanol produced with fruit based products.
Methanol is nasty stuff in beverages. Mostly comes from woody material sometimes found in the ingredients used for the fermenting process. Hence it’s name...wood alcohol.