Please remember - even Pamac provides an helper - AUR is generally unsupported.
Using pamac to auto update your custom scripts from AUR often presents piffalls
What happens here is explained in the message
Socket I/O timed out
This means pamac didn’t get a response - this happens frequently as the file is a CDN location.
In no particular order