Those waveforms look pretty bad.

For sure you need a lower pull-up resistance. 2KΩ is recommended for 400khz operation.
<br>