If you sold him a car with a stolen engine, you need to fix the problem. You represented that you owned what you were selling to him, and you don't own the engine if it was a stolen engine.
It sounds like you know a lot about cars, so it's unlikely you weren't aware of the significance of the serial number's having been etched off.

