I’d recommend cutting holes smaller than 2″ if possible, and as long as you leave a few inches, you’ll be fine. If you need to do another 2″ hole, leave about 4″ at least. The main thing you never want to do with a joist is notch it on the bottom (or cut a hole in it at the bottom).