
Night time I would just go for a solid routine. Bed time, stay there, up in the morning. If he needs a loo break then it's done on lead and all very boringly, so he cant take himself off an hoon around, then back to bed to sleep again. You could try putting a radio on quietly in case he's hearing something and barking at that.
The evening thing is totally normal, and I haven't met a pup yet who doesn't do it! I call it Witching Hour for puppies

I wouldn't try to just stop it as such, but redirect that energy into chews, treat balls (good as the dog has to move to get the food), brain training (tricks, scentwork etc).