Bulking diets, just like weight loss diets, put a slight strain on your body. And being on a long term weight gain diet is not typically recommended for most people. The longer you bulk, the more muscle you potentially gain, however, you're also gonna add a decent amount of fat in the process.
Many will aim to do a slower bulk lasting anywhere from 8 to 12 weeks during winter months when they don't mind gaining a bit of body fat, or during a time period where they require adequate fuel for their training.
You can certainly bulk for longer than this or until you achieve your desired weight. However, you might find more success cycling through a series of bulks and cuts to achieve your ideal physique.