Prism.js is one of the best & most light-weight code syntax highlighters out there. Surprisingly (at least at the time of writing this), there’s not a WordPress Prism.js Gutenberg block plugin available on WordPress.org.
Luckily, Jim Schofield put together one on GitHub and is easily customizable for your specific needs (i.e. load only what you need). He also did a great write-up on how he accomplished this by showing how to create custom Gutenberg blocks.