Optimize MySQL Configuration - MySQL crash and after restart works
Suggestions for my.cnf/ini [wampmysqld] section

key_buffer=64M       SHOULD BE
key_buffer_size=64M  # from key_buffer  to be recognized
expire_logs_days=10  # from default 0, to provide limited historical logs
innodb_buffer_pool_instances=8  # to minimize mutex contention
innodb_buffer_pool_dump_at_shutdown=ON  # prepare for WARM on restart
innodb_buffer_pool_load_at_startup=ON  # pool will be warmed up
innodb_buffer_pool_dump_pct=75  # from 25 you will likely need the data
innodb_page_cleaners=64  # 4 to auto-limit = innodb_buffer_pool_instances
innodb_print_all_deadlocks=ON  # chk error log-be proactive to prevent 
innodb_purge_threads=4  # to keep up with activity
log_warnings=2  # to have record of attempted connections in error log
#max_connections=4000  # lead with # to have default of 151 until stable
#sort_buffer_size=512K  # lead with # for default of 2M
#max_allowed_packet=1000M  # lead with # for default of 1M


if you need MAP greater than 1M, it is likely for data loading infile
in your SESSION,
SET @max_allowed_packet=nnnnnnnnn  bytes max in input file  1G is THE LIMIT

this technique will HELP avoid OOM due to a new connection.