Linear relations between modular form coefficients and non-ordinary primes