I don't know about the other problem, but you seem to have what is called an "active buzzer", which means it already contains tone generating components and will totally ignore a tone sent on the pin powering the buzzer. Did you not see the headline for the device that has a built-in tone generator?
The other problem is likely caused by an error in your code.
It is a bit confusing for me. It sounds like electrical noise is messing up the processor which should not happen. A simple schematic of how you have it wired and powered would help a lot along with links to technical information on the hardware items.
As a said before buzzer + on D17 (analog port) -to ground … I have other stuff connected like relays and ir receiver, switches … but none od that is used up to the point of failure
If I beep I loose the serial … if I don’t serial works fine