check power on the port.
should be 5 volts standard Amiga mice work down to less than 2 volts. keyboards freak much sooner.
since it dies after time sounds like a PSU problem
Big box Amigas have separate 5 volt lines with a low current line for the ports
if this is going low it would acount for your problems