EU must solve migration crisis or bloc could fall apart, warns Polish minister