Fire crews are expected to remain at the scene of a major blaze at a farm in North Yorkshire ‘for some time’.