If Rosh Hashana were to fall on Wednesday or Friday, then that would result in Yom Kippur being on Friday or Sunday. The calendar was designed to avoid this happening since the sages deemed having Shabbos and Yom Kippur adjacent would be difficult due to needing to refrain from melachos.
However, in diaspora, we have recently had the first two days of Pesach immediately followed by Shabbos.
How has 3 consecutive days of refraining from melachos ended up in our calendar, when the caveat for Yom Kippur was made to avoid the 2 days? Are these 3 days not equally a problem?