Not charging battery

Hello, my motorcycle is a Suzuki GS550 or GN 1 D year 1984. The motorcycle just went out about 1 hour during the ride and didn’t give off any sparks. After a break of half an hour I got sparks again at a foreign start and was able to start again. After another half an hour the machine went out again during the ride. A voltage test showed that the alternator provided alternating current. The voltage dropped however when I gave gas. a new controller is installed. Unfortunately, the problem is not fixed. What can be the cause?