The best solution is: Try to use a working hardware - otherwise, the behaviour of the software may be unpredictable if the board is somehow damaged.
Of course, you can try to deactivate the touch driver within the initialization and remove all touch driver accesses...