I installed an error on the Raspberry Pi

It can be downloaded at first, but it is a bit slow.
But after a while, this error occurred. I don’t know why?

pi@raspberrypi:~ $ sudo snap install nextcloud

error: cannot perform the following tasks:
- Download snap "core" (7274) from channel "stable" (stream error: stream  ID 1;PROTOCOL_ERROR)

pi@raspberrypi:~ $ sudo snap install nextcloud

error: cannot perform the following tasks:
- Download snap "core" (7274) from channel "stable" (Get 

https://fastly.cdn.snapcraft.io/download-origin/fastly/99T7MUlRhtI3U0QFgl5mXXESAiSwt776_7274.snap?

token=1561881600_6b65a842b54b04f22799a5068e763ac5e80edc26: write on closed buffer)

pi@raspberrypi:~ $ sudo snap install nextcloud

error: cannot perform the following tasks:
- Download snap "core" (7274) from channel "stable" (stream error: stream ID 1;PROTOCOL_ERROR)
pi@raspberrypi:~$