When I connect a load to measure the current with acs712 for a moment passes a more current.
Someone can explain it.
Not without more information, its not very clear what you did. "a load" - what load? "more current" -
how much more current? (and more than what?)
Details are not really optional for this sort of question, they matter.
Give us a wiring drawing and/or picture of your setup.
If there is a capacitor, there will be a current inrush to charge it up to the supply voltage.