Can you cook off the acidity in wine?
You can' "cook off" acidity, but you can balance it.  Typically in marinara, that is done with a small amount of sugar, or, better yet, half of a grated carrot per 28 oz can of tomatoes, sweated with your onion.