Can custom CSS cause an error when trying to upgrade?

Unlikely, it is almost always third party plugins .. but you should follow the advice listed there and scroll up to look for the error.