I was recently at a home where a piece we hadn’t installed had fallen off the wall. After a little inspection I had come to the conclusion that the hook failed because it had been painted over. The paint had gotten into the plaster and weakened the nail’s grip. It had become the plaster equivalent of soggy cardboard.
The hook won’t always fail, but if you pull out a hook that has been painted the result can be ugly.
My recommendation would be to pull the hooks out when you are painting a room and re-install the artwork. It seems more laborious but the result will be safer and require less wall repair in the end. As the saying goes, an ounce of prevention beats a pound of cure