You have a fatal error in your code which I cannot see by looking at it.
You need to disable WP WSOD protection https://wordpress.stackexchange.com/questions/337391/how-to-disable-the-fatal-error-wsod-protection
And you need to enable debugging https://codex.wordpress.org/WP_DEBUG
so that you can see what the real error is.