Hi,
It may be either a loose touchscreen (digitizer) cable connection or a faulty digitizer.
Either way the phone will need to be opened and the touchscreen flex cable connection checked to see if it is OK and if so then most probably the touchscreen will need to be replaced.
Here’s a link to the ifixit [guide|5552] guide, which may be of some help.
There are suppliers online that sell the digitizer but unfortunately all of the ones I found say “currently sold out”. You may have better luck in finding a supplier. Just search for ''Samsung Eternity (or Samsung A867) digitizer part'' to get results.