Burning or acrid (acid) smells could mean you're experiencing electrical component malfunctions. This isn't safe: pull over as soon as reasonably possible and switch off the ignition. Wait to see if your engine compartment stops smoking to avoid a possible fire in a car.
It’s essential not to panic — stay safe but act quickly; this odor or other signs from your vehicle (engine knocking, steam hissing, etc.) indicate potential overheating.