Fatal error: Maximum execution time of 30 seconds exceeded using M2

Good day. I recently tried to access account information while testing out other issues and found the following issue when trying to access a users account info:

This issue does not seem to happen when a user is logged in.