In new set ups, bacterial blooms are very common, and no amount of filtration with remove the bacteria because individual bacteria are so small. They usually go away on their own, once the tank has settled into some kind of equilibrium with the amount of stock, and filtration.
This can take days, or weeks, or longer depending of whether the tank is overstocked, or understocked, if cycled properly, there are many scenarios.
As to why th ray is under the heater....is there any other decor in the tank?
Most young riverine fish live along shaded banks, and until they are adults stay under branches, leafy foliage, and other cover, and in aquariums find comfort in any type objects provided to hide or relax near.
Open water areas (similar to bare tanks, or tanks without plants, (floating or rooted) until they get used to them) are stressful situations, where fish instinctually feel vulnerable. Many rays bury themselves in sand in open situaltions where cover is non-existent.
These instincts don't vanish in aquariums.
Above photo a river bank in the Magdalena system in Colombia, below Lake Gatun in Panama, places fish congregate and feel protected.
below, an underwater shot in the Magdalena river.