I use below function for insert/create new user from admin panel:
public function store(Request $request)
{
$this->validate($request, [
\'name
I was facing the same problem, after debugging I found my smtp credentials was not working properly, email sending modules was not working that why I was getting this error, after fixing the credentials my code starts working properly and exception get disappear.
I suggest you to check your smtp credentials and make your you turn on less secure app setting.