The “error -6” code happens to me sometimes too, but it usually goes away on its own next time I try. If you verified that your files are all in the right place and you can connect to wifi with other homebrew, perhaps just try it a few more times to see if it works. If not you could always try reinstalling the homebrew browser app files since they could be corrupted.