I concur with taking puppy to the vet's to see what's up. It is not usual to scratch lots, and especially intermittent with whimpering. Poor guy

I'm no expert, but I hope that it will be something simple to clear up

Please update us with what the vet concluded

We can all learn something from each other. Good luck!