Suddenly my server got crashed out of nowhere

T2.small wouldn’t work?

Are you sure the resize fixed it and not just the restart triggered by the resize operation?

It’s going to be much harder to identify the cause now that you’ve altered the configuration.