This error occurs most likely is too long that the Pw field allows it to be, try a maximum of 10 characters and see if works. If works then improve your error check in register.php with something like..
Code:
if($password > 10 || $password < 3)
errors[] = 'password too long or too short, please try again';
It will allow the output to be your string rather than server error.