I wouldn't risk it. That is a very tight connection, especially considering the security/monorail issue and luggage recheck. And if it is two different itineraries then I definitely wouldn't do it. Even if BA/CO protect you on the next flight, it means an overnight at EWR, with the next flight out around 9am the following morning.