Hello my name is Walker and it sound like your issue is a shorted connection between the trackpad and the logic board. This also my have been a issue within the trackpad it's self. The other issues you are having with it not sleeping would be the light sensor this means that you might have put the sensor in back word or just a little different than what it originally was.
If you have any questions about this please comment below. If this fixed your problems please give me a thumbs up thank you.